import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [

  {
    title: '主项目',
    align: "center", resizable: true,
    dataIndex: 'projectId_dictText'
  },
  {
    title: '项目名称',
    align: "center", resizable: true,
    dataIndex: 'subProjectName'
  },
  {
    title: '用户权限',
    align: "center", resizable: true,
    dataIndex: 'userId_dictText'
  },
  {
    title: '分包商',
    align: "center", resizable: true,
    dataIndex: 'contactId_dictText'
  },
  {
    title: '子项目状态',
    align: "center", resizable: true,
    dataIndex: 'status_dictText'
  },
 
  {
    title: '子项目预算',
    align: "center", resizable: true,
    dataIndex: 'budget'
  },
  {
    title: '合同金额（含税）',
    align: "center",
    resizable: true,
    dataIndex: 'contractPrice'
  },
    {
    title: '最新报价',
    align: "center",
    resizable: true,
    dataIndex: 'totalQuotation'
  },
  {
    title: '合同文件',
    align: "center", resizable: true,
    dataIndex: 'fileRecordId',
  },
    {
    title: '附件',
    align: "center", resizable: true,
    dataIndex: 'attachmentUrl',
  },

/*  {
    title: '最新报价',
    align: "center", resizable: true,
    dataIndex: 'totalQuotation'
  },*/
 /* {
    title: '操作',
    align: "center", resizable: true,
    dataIndex: 'btn'
  },*/
];

// 高级查询数据
export const superQuerySchema = {
  projectId: {title: '主项目',order: 0,view: 'text', type: 'string',},
  subProjectName: {title: '子项目名称',order: 1,view: 'text', type: 'string',},
  subProjectDescription: {title: '子项目描述',order: 2,view: 'textarea', type: 'string',},
  contactId: {title: '指派给总包商',order: 3,view: 'text', type: 'string',},
  status: {title: '子项目状态',order: 4,view: 'text', type: 'string',},
  startDate: {title: '预计开始日期',order: 5,view: 'datetime', type: 'string',},
  endDate: {title: '预计结束日期',order: 6,view: 'datetime', type: 'string',},
  budget: {title: '子项目预算',order: 7,view: 'number', type: 'number',},
  fileRecordId: {title: '相关合同文件',order: 8,view: 'text', type: 'string',},
  totalQuotation: {title: '合计报价',order: 9,view: 'number', type: 'number',},
};
